package main

import (
	"fmt"
	"net"
	"os"
)

func main() {
	name := "192.168.1.1"
	addr := net.ParseIP(name)

	if addr == nil {
		fmt.Println("无效的地址")
	} else {
		fmt.Println("地址为：", addr.String())
	}

	os.Exit(0)
}
